#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(int argc,char* argv[])
{   
    unsigned int nian=0,yue=0,day=0,days=0,nianday=0,yueday=0,i =1;
    printf("请输入年份:");
    scanf("%u",&nian);
    printf("请输入月份:");
    scanf("%u",&yue);
    printf("请输入日期:");
    scanf("%u",&day);
    int panduanda=(yue==1||yue==3||yue==5||yue==7||yue==8||yue==10||yue==12)&&yue!=2;
    int panduanxiao=(yue==4||yue==6||yue==9||yue==11)&&yue!=2;
    if(nian%4==0 && nian%100!=100||nian%400==0)
    {
        nianday=366;
    }
    else
    {
        nianday=365;
    }
    if((nianday == 366) && yue ==2)
    {
        yueday=29;
    }
    else if (panduanda == 1)
    {
        yueday=31;
    }
    else if(panduanxiao == 1)
    {
        yueday=30;
    }
    else
    {
        yueday=28;
    }
    while(i)
    {
        if(nian<2010)
        {
            printf("请输入大于或等于2010的年份\n");
            i=0;
        }
        else
        {
            days=(nian-2010)*nianday+(yue-1)*yueday+day;
            if((0<days%5) && (days%5 <= 3))
            {
                printf("打鱼\n");
            }
            else
            {
                printf("晒网\n");                
            } 
            i=0;
        }
    }
    
    
    return 0;
}